<?php

use Illuminate\Database\Seeder;

class BrandsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $brands = [
            [
                'name' => '华为',
                'cover' => 'http://demo2.rageframe.com/attachment/images/2020/03/17/image_158443059248999749.jpg',
            ],
            [
                'name' => '小米',
                'cover' => 'http://demo2.rageframe.com/attachment/images/2020/03/15/image_158428123854521024.jpg',
            ],
            [
                'name' => 'oppo',
                'cover' => 'http://www.yllook.com/attachment/images/2020/02/29/image_158295569410153515.jpg',
            ],
            [
                'name' => 'vivo',
                'cover' => 'http://demo.rageframe.com/attachment/images/2020/04/22/image_1587542456_Y3vPNVKb.jpeg',
            ],
            [
                'name' => '联想',
                'cover' => 'http://demo.rageframe.com/attachment/images/2020/04/22/image_1587542456_Y3vPNVKb.jpeg',
            ],
            [
                'name' => 'iphone',
                'cover' => 'http://demo2.rageframe.com/attachment/images/2020/03/17/image_158443059248999749.jpg',
            ],
            [
                'name' => '罗马仕',
                'cover' => 'http://www.yllook.com/attachment/images/2020/02/29/image_158295569410153515.jpg',
            ],
            [
                'name' => '海飞丝',
                'cover' => 'http://demo2.rageframe.com/attachment/images/2020/03/17/image_158443059248999749.jpg',
            ],
            [
                'name' => '立白',
                'cover' => 'http://www.yllook.com/attachment/images/2020/02/29/image_158295569410153515.jpg',
            ],
        ];

        foreach ($brands as $brand) {
            \App\Models\Brand::query()->create([
                'name' => $brand['name'],
                'sort' => 100,
                'cover' => $brand['cover'],
                'status' => 1,
            ]);
        }
    }
}
